package com.hz.ruoyilgorder.api.controller;

import com.hz.rouyigonggong.domain.dto.LgOutOrderDTO;
import com.hz.ruoyilgorder.service.LgOutOrderService;
import com.hz.ruoyilgorder.utils.ResultJSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @version 1.0
 * @Author yzw
 * @Date 2025/3/12 16:23
 * @注释   田
 */

@RestController
@RequestMapping("/api1")
public class LgOutApi {
    @Autowired
    private LgOutOrderService lgOutOrderService;
    @GetMapping("/list")
   public ResultJSON querybuyer(@RequestParam("buyerPhone") String buyerPhone){
       return ResultJSON.success(lgOutOrderService.querybuyer(buyerPhone));
   };

}
